package arbitrage;

import java.io.FileNotFoundException;

public class Test {
	
	// Test d'un tournoi, afficher aussi le temps de calcul 
    static void test() throws VariableNotFoundException, InstructionException, FileNotFoundException, ProgramLengthException, ModeException {
    	
    	double start = System.nanoTime();
    	
    	Tournoi t = new Tournoi();
    	t.add("dwarf");
    	t.add("imp");
    	t.play();	
    	
    	double finish = System.nanoTime();
    	
    	System.out.println();
    	System.out.println(Math.ceil((finish-start)*Math.pow(10,-8))*0.1 + " secondes");
    }
    
    public static void main(String[] args) throws VariableNotFoundException, EmptyProcessListException, InstructionException, FileNotFoundException, ProgramLengthException, ModeException {
    	test();
    }
    
}